package cn.zj.admin.modules.issues.apis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zj.admin.modules.issues.service.IssuesService;

/**
 * 项目管理
 */
@RestController
@RequestMapping("tally")
public class ProjectApi {
 
    @Autowired
    private IssuesService issuesService;

//    @GetMapping(value = "/accounts/{customerId}")
//    public List<ProjectVo> findById(@PathVariable("customerId") String customerId) {
//        return issuesService.findAccountByCustomerId(customerId);
//    }
//
//    @ApiOperation("获取账户列表")
//    @GetMapping(value = "/accounts/{customerId}")
//    public List<ProjectVo> findById(@PathVariable("customerId") String customerId) {
//        return issuesService.findAccountByCustomerId(customerId);
//    }
//
//    @ApiOperation("添加账户")
//    @PostMapping(value = "/accounts")
//    public Account addAccount(@RequestBody Account account) {
//        return tallyService.saveAccount(account);
//    }
//
//    @ApiOperation("删除账户")
//    @DeleteMapping(value = "/accounts/{accountId}")
//    public Boolean deleteAccount(@PathVariable("accountId") String accountId) {
//        return tallyService.deleteAccount(accountId);
//    }
//
//    @ApiOperation("对账")
//    @PostMapping(value = "/accounts/checkNow/{customerId}")
//    public List<Account> checkNow(@PathVariable("customerId") String customerId) {
//        return tallyService.checkNow(customerId);
//    }
//
//    @ApiOperation("增加或修改记录")
//    @PostMapping("itemRecord")
//    public AccItemRecord postItem(@RequestBody AccItemRecord record) {
//        return tallyService.saveItem(record);
//    }
//
//    @ApiOperation("分页获取记录")
//    @GetMapping("itemRecord")
//    public PageData<AccItemRecord> pageItem(ItemCriteria criteria) {
//        return tallyService.pageItem(criteria);
//    }

}